package org.example.rubbish.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.rubbish.dto.StationStatusDTO;
import org.example.rubbish.entity.Site;

import java.util.Date;

import java.util.List;
import java.util.Map;

@Mapper
public interface StationMapper extends BaseMapper<Site> {

    @MapKey("total")
    Map<String, Object> selectStationStatistics(@Param("startTime") Date startTime,
                                                @Param("endTime") Date endTime);

    List<StationStatusDTO> selectStationStatus();
}